package com.xie.smfs.registry;

import net.minecraft.registry.Registries;
import net.minecraft.sound.SoundEvent;
import net.minecraft.util.Identifier;
import net.minecraft.registry.Registry;
public class ModSounds {
    // 敲门鬼相关声音
    public static SoundEvent KNOCKING_SOUND;
    public static SoundEvent GHOST_APPEAR;

    public static void registerSounds() {
        KNOCKING_SOUND = register("entity.knocking_ghost.knock");
        GHOST_APPEAR = register("entity.knocking_ghost.appear");
    }

    private static SoundEvent register(String id) {
        Identifier identifier = new Identifier("smfs", id);
        SoundEvent soundEvent = SoundEvent.of(identifier);
        return Registry.register(Registries.SOUND_EVENT, identifier, soundEvent);
    }
}